package com.jxbeidou.login.event;

import com.jxbeidou.core.entity.SecurityUserVO;
import org.springframework.context.ApplicationEvent;

import java.util.Objects;

/**
 * @program: jxbeidou-basic
 * @ClassName: LoginSuccessEvent
 * @description: 用户登录成功事件
 * @author: 杜晓祥
 * @create: 2023-12-26 17:04
 * 版权所有：交信北斗(北京)信息科技有些公司
 */
public class LoginSuccessEvent extends ApplicationEvent {

    private SecurityUserVO user;

    private String ip;

    public LoginSuccessEvent(SecurityUserVO source, String ip) {
        super(source);
        this.user = source;
        this.ip = ip;
    }

    public SecurityUserVO getUser() {
        return user;
    }

    public String getIp() {
        return ip;
    }
}
